/**
 * 账号相关
 */
import http from './http'
import { useUserStore } from '@/stores/user'

const useStore = useUserStore()

export const login=(data, callback) => http.post('/v1/login', data, callback, true)

export const logout = () =>useStore.logout()


export const updatePwd=(data, callback) =>http.post('/v1/modify_pwd' , data, callback, false)

